<h2 style="background-color:#368EE0; color:white; font-size:20px; padding:5px;"> Update Head </h2>
<p style="color:green;"align="justify">Please enter the Head information below.</p>
<br>
<br>
<?php if(!empty($message)) {?>
<div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo $message;?></div>
<?php }?>
<?php echo form_open(current_url());?>
<table width="48%" align="center" class="table-condensed">  
        <tr>
          <td width="21%"><b>Name:</b> </td>
          <td colspan="2"><?php echo form_input($name);?></td>
        </tr>
         <tr>
         	 <td width="21%"><b>Parent Group: </b></td>
          	<td colspan="2">
            	  <?php 
	 	$bl[0] = "";
			foreach($groups as $group){
				$bl[$group->id] = $group->name;
				
			}
			echo form_dropdown('group', $bl, $user->group,'', 'class="chzn-select" data-placeholder="Choose a Group" style="width:352px;"');  ?>
          <?php echo form_error('group');?>
           </td>
        </tr>
       
        <tr>
           <td>
	            <?php echo form_hidden('id', $user->id);?> 
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td><td><p align="center"><?php echo form_submit($submit,'class="btn btn-success"');?></p></td>
  </tr>
</table>
<?php echo form_close();?>
